package com.tsing.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsing.wms.entity.OutInRecordEntity;
import com.tsing.wms.vo.PageResultVO;
import com.tsing.wms.vo.req.ExportRecordReqVO;
import com.tsing.wms.vo.req.IdReqVO;
import com.tsing.wms.vo.req.RecordPageReqVO;
import com.tsing.wms.vo.req.RecordReqVO;
import com.tsing.wms.vo.resp.IdAndNameRespVO;
import com.tsing.wms.vo.resp.RecordRespVO;
import com.tsing.wms.vo.resp.StockListRespVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 出入库记录表 服务类
 * </p>
 *
 * @author TheTsing
 * @since 2022-04-13
 */
public interface IOutInRecordService extends IService<OutInRecordEntity> {

    List<IdAndNameRespVO> storehouseList();

    List<StockListRespVO> stockList(IdReqVO reqVO);

    void addRecord(RecordReqVO reqVO, HttpServletRequest request);

    RecordRespVO getRecord(IdReqVO reqVO);

    PageResultVO<RecordRespVO> recordPage(RecordPageReqVO reqVO);

    void exportRecord(ExportRecordReqVO reqVO, HttpServletRequest request, HttpServletResponse response);

}
